package com.cn.ssm.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.cn.ssm.dao.UsertMapper;
import com.cn.ssm.model.Usert;
import com.cn.ssm.service.UsertService;

@Service
@Transactional
public class UsertServiceImpl implements UsertService {

	@Resource
	public UsertMapper usertMapper;
	@Override
	public Usert getUserById(int userId) {
		// TODO Auto-generated method stub
		return this.usertMapper.selectByPrimaryKey(userId);
	}

}
